﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.WarehouseManagement
{
    /// <summary>
    /// 盘点任务
    /// </summary>
    public interface IInventoryManagementServices
    {
        /// <summary>
        /// 新增盘点单
        /// </summary>
        /// <param name="inventoryManagement"></param>
        /// <returns></returns>
        Task<int> AddInventoryManagement(InventoryManagement inventoryManagement);
        /// <summary>
        /// 盘点单的显示
        /// </summary>
        /// <returns></returns>
        Task<List<InventoryManagement>> GetAllInventoryManagement(string? taskCode, int? status, int pageIndex = 1, int pageSize = 5);


        /// <summary>
        /// 盘点单的修改
        /// </summary>
        /// <param name="inventoryManagement"></param>
        /// <returns></returns>
        Task<int> UpdateInventoryManagement(InventoryManagement inventoryManagement);

        /// <summary>
        /// 删除盘点单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteInventoryManagement(int id);
    }
}

